//
//  EPMNetWorkTool.h
//  WeiBoByOC
//
//  Created by 马继鵬 on 17/3/23.
//  Copyright © 2017年 7TH. All rights reserved.
//

#import <AFNetworking/AFNetworking.h>

enum Method:int{
    GET = 0,
    POST
};
@interface EPMNetWorkTool : AFHTTPSessionManager

    + (instancetype)sheardTool;
    
    - (void) request:(Method) method url:(NSString*)urlString paramater:(id)paramater finisedBlock:(void(^)(id,NSError*)) finiesedBlock;
    //获取用户数据
    - (void)getHomeWeiBoDataMaxID:(UInt64)maxID sinceID:(UInt64) sinceID finished:(void(^)(id res,NSError* error))finishedBlock;
    - (void)sendMessageWithMessage:(NSString*)message pictures:(NSArray<UIImage*>*)imgList finished:(void(^)(id res,NSError* error))finishedBlock;
    - (void)sendMessageWithMessage:(NSString*)message finished:(void(^)(id res,NSError* error))finishedBlock;


@end
